package cc.site.main.bean;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author yangruomao
 * @since 2024-04-14
 */
@TableName("tbl_user")
@ApiModel(value = "TblUser对象", description = "")
@Data
public class TblUser extends cc.site.security.bean.TblUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("用户名")
    private String username;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("身份证号")
    private String cardId;

    @ApiModelProperty("头像")
    private String avatar;

    @ApiModelProperty("0 超级用户，1普通用户，默认1")
    private Integer type;

    @TableLogic
    private Integer deleted;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtUpdate;

}
